import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

//小微园创建
export function parkCreate(data) {
  return request({
    url: '/park/create' + transFormValue(data),
    method: 'post'
  })
}

//小微园列表
export function parkGetList(data) {
    return request({
      url: '/park/getList' + transFormValue(data),
      method: 'post'
    })
}

//小微园编辑
export function parkUpdate(data) {
    return request({
      url: '/park/update' + transFormValue(data),
      method: 'post'
    })
}

//小微园删除
export function parkDelete(data) {
  return request({
    url: '/park/delete' + transFormValue(data),
    method: 'post'
  })
}

//小微园获取可导出字段
export function parkGetExportFieldOptions() {
    return request({
      url: '/park/getExportFieldOptions',
      method: 'post'
    })
}

//异步导入小微园
export function parkAsyncImportZip(data) {
  return request({
    url: '/park/asyncImportZip' + transFormValue(data),
    method: 'post'
  })
}

// 小微园地图展示
export function parkGetCollection(data) {
  return request({
    url: '/park/getCollection' + transFormValue(data),
    method: 'post'
  })
}

// 小微园详情
export function parkInfo(data) {
  return request({
    url: '/park/info' + transFormValue(data),
    method: 'post'
  })
}


